<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// [ 应用入口文件 ]
$the_host = $_SERVER['HTTP_HOST'];//取得当前域名   


$request_uri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';//判断地址后面是否有参数 
if($the_host == 'sinalma.cn')//把这里的域名换上你想要的   
{   
    header('HTTP/1.1 301 Moved Permanently');//发出301头部   
	header('Location: http://www.sinalma.cn'.$request_uri);
	exit; 
}  
// 定义应用目录
define('APP_PATH', __DIR__ . '/application/');
define('CONF_PATH',__DIR__.'/conf/');



// 加载框架引导文件
require './thinkphp/start.php';